import {
	Api
} from '@/common/api'
import {
	ApiBase
} from '@/common/api-base.js';

import upload from '@/common/upload'

const moduleUrl = getApp().globalData.config.moduleUrls


class WeiXinClass extends ApiBase {
	getOpenId(jsCode, provider, iv, encryptedData, code) {
		return this.api.post(`${this._namespace}/login`, {
			jsCode,
			provider,
			iv,
			encryptedData,
			code
		}, {
			isToken: false
		});
	}
}

export const WXApi = new WeiXinClass('/wx')
